package com.bite;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
     Scanner scanner = new Scanner(System.in);
     String are = scanner.nextLine();
     int a = 0,b = 0;
     for(int i = 0; i < are.length();i++) {
         if (are.charAt(i) == 'A') {
             a++;
         } else {
             b++;
         }
     }
     if (a>b)
        System.out.println("A!!!!");
     if (a<b)
        System.out.println("B!!!!");
    }
}
